package com.friendsoft.security;

public interface SecurityManager {
	/**
	 * set the algorithm which used for this security manager
	 * @param algorithm
	 */
	void setCryptographyAlgorithm(String algorithm) ;
	
	/**
	 * the algorithm which used for this security manager
	 * @return cryptography algorithm
	 */
	String getCryptographyAlgorithm() ;
	
	/**
	 * encrypt the data using specific cryptography algorithm
	 * @param plainText
	 * @return cipher text after getting encrypted
	 * @throws SecurityException
	 */
	String encryptData(String plainText) throws SecurityException ;
	
	/**
	 * decrypt the data using specific cryptography algorithm
	 * @param cipherText
	 * @return plain text after getting decrypted
	 * @throws SecurityException
	 */
	String decryptData(String cipherText) throws SecurityException ;
}
